package com.chen106106.sstest.common.redis;

import redis.clients.jedis.JedisPubSub;

public class MyListener extends JedisPubSub{
	// 取得订阅的消息后的处理  
		@Override
		public void onMessage(String channel, String message) {
			System.out.println(channel+"="+message);
		}
		// 取得按表达式的方式订阅的消息后的处理  
		@Override
		public void onPMessage(String pattern, String channel, String message) {
			System.out.println(pattern+"="+channel+"="+message);
		}

		@Override
		public void onPSubscribe(String arg0, int arg1) {
			// TODO Auto-generated method stub
			
		}

		@Override
		public void onPUnsubscribe(String arg0, int arg1) {
			// TODO Auto-generated method stub
			
		}

		@Override
		public void onSubscribe(String arg0, int arg1) {
			// TODO Auto-generated method stub
			
		}

		@Override
		public void onUnsubscribe(String arg0, int arg1) {
			// TODO Auto-generated method stub
			
		}

		
	}
